package com.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="pets")
public class Pets {
	private Integer id;
	private String name;
	private String sex;
	private String type;
	private String pic;
	private String describe;
	private int price;
	private int discountprice;
	public Pets(){
		
	}
	
	public Pets(Integer id, String name, String sex, String type, String pic, String describe, Integer price,
			Integer discountprice) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.type = type;
		this.pic = pic;
		this.describe = describe;
		this.price = price;
		this.discountprice = discountprice;
		
	}

@Column(name="price")	
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
@Column(name="discountprice")
	public int getDiscountprice() {
		return discountprice;
	}
	public void setDiscountprice(int discountprice) {
		this.discountprice = discountprice;
	}
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
@Column(name="name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
@Column(name="sex")
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
@Column(name="pic")
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
@Column(name="describe")
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
@Column(name="type")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Pets [id=" + id + ", name=" + name + ", sex=" + sex + ", type=" + type + ", pic=" + pic + ", describe="
				+ describe + ", price=" + price + ", discountprice=" + discountprice + "]";
	}
	
	

}
